package yc.day0109.travelt.service;



import yc.day0109.lottery.service.UserMgr;
import yc.day0109.travelt.dao.ScenicSpotDao;
import yc.day0109.travelt.po.ScenicSpot;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;

public class ScenicSpotMgr {
    private Logger logger = Logger.getLogger(String.valueOf(UserMgr.class));
    public void showInfo(ScenicSpotDao scenicSpotDao){
        System.out.println("显示景点：");
        Map<String,Object> map = new HashMap<>();
        List<ScenicSpot> scenicSpotList = scenicSpotDao.queryScenicSpot(map);
        System.out.println("景点名称\t\t建议游玩时长\t\t景点简介");
        for (ScenicSpot ss : scenicSpotList) {
            System.out.println(ss.getSsName() + "\t\t" + ss.getSsDuration() + "\t\t" + ss.getSsContent());
        }
    }
}
